﻿@model yq.Model.Logic.SysInfo
@Url.Css("Css/metro/css/list.css")
@Url.Script("Scripts/metro/info.js")
@Url.UploadScript()
<div id="container" class="container">
    @Html.Action("Navigation", "Home")
           @Html.Action("RowLeft", "PublicReuse", new { Area = "Home" })
    <div id="container_r" class="container_right">
        @Html.Action("HeadTitle", "PublicReuse", new { Area = "Home" })
        <div class="span8">
    <script>
        function OnSuccessForm(obj) 
        {
            if (obj.Status == 1) {
                window.location = window.location;
            } else {
                $.tips(obj.ErrorText);
            }
        }
    </script>
    
    @using(Ajax.BeginForm("DoEdit",null,new  AjaxOptions{ OnSuccess="OnSuccessForm"},new { @class="form-horizontal" ,novalidate="novalidate"  }))
    {
          
                <fieldset>
                    <div class="control-group">
                        <label class="control-label" for="disabledInput">
                            @Html.RawFor(obj => obj.Title)</label>
                        <div class="controls">
                            @Html.TextBoxFor(obj=>obj.Title)
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="disabledInput">
                            @Html.RawFor(obj => obj.WelCome)</label>
                        <div class="controls" > 
                            @Html.TextAreaFor(obj => obj.WelCome, new { cols = "5", rows = "5", style = " width:400px" })
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="disabledInput">
                            @Html.RawFor(obj => obj.FileUp)</label>
                        <div class="controls">
                            @Html.TextBoxFor(obj => obj.FileUp)
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="disabledInput">
                            @Html.RawFor(obj => obj.Logo)</label>
                        <div class="controls">
                            @Html.ImgFile(Model.Logo, 200, 50, 50, new { id = "ImgFileLogo" })
                            @Html.UploadFor(obj => obj.Logo, new UploadConfig() { Callback = "ImgFileLogofun" }, UploadType.Img, Model.WebId)
                            <script>
                             function ImgFileLogofun()
                             {
                               $("#ImgFileLogo").hide();
                             }
                            </script>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label"  for="disabledInput">
                        </label>
                        <div class="controls">
                            @Html.Submit("提 交")
                        </div>
                    </div>
                </fieldset>
           }
        </div>
    </div>
</div>
